﻿@model SklepISI.Web.Models.AccountViewModel

@{   
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "Rejestracja";    
}
@section AddToHead{
    
}
<div class="offset2">
    <h2>Zarejestruj się</h2>
</div>
<div class="offset1">
    <p class="well-small">
        Rejestracja w naszym serwisie jest darmowa, poświęć chwilę i uzupełnij wszystkie pola.
    </p>
</div>
<div style="color: #B94A48;background-color: #F2DEDE;border-color: #EED3D7;">
    @Html.ValidationSummary(true)
</div>

<div class="offset2 log-form well">
    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()    
   
        <div class="userName">
            @Html.LabelFor(m => m.Username)
            @Html.TextBoxFor(m => m.Username)
            @Html.ValidationMessageFor(m => m.Username)
        </div>
    
        <div class="password">
            @Html.LabelFor(m => m.Password)
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </div>
        <div class="confirmPassword">
            @Html.LabelFor(m => m.PasswortRetype)
            @Html.PasswordFor(m => m.PasswortRetype)
            @Html.ValidationMessageFor(m => m.PasswortRetype)
        </div>
    
        <div class="email">
            @Html.LabelFor(m => m.Email)
            @Html.TextBoxFor(m => m.Email)
            @Html.ValidationMessageFor(m => m.Email)
        </div>
    
        <div class="firstName">
            @Html.LabelFor(m => m.FirstName)
            @Html.TextBoxFor(m => m.FirstName)
            @Html.ValidationMessageFor(m => m.FirstName)
        </div>
    
        <div class="lastName">
            @Html.LabelFor(m => m.LastName)
            @Html.TextBoxFor(m => m.LastName)
            @Html.ValidationMessageFor(m => m.LastName)
        </div>
    
        <div class="address">
            @Html.LabelFor(m => m.Address)
            @Html.TextBoxFor(m => m.Address)
            @Html.ValidationMessageFor(m => m.Address)
        </div>
        <div class="postalCode">
            @Html.LabelFor(m => m.PostalCode)
            @Html.TextBoxFor(m => m.PostalCode)
            @Html.ValidationMessageFor(m => m.PostalCode)
        </div>

<INPUT type="submit" class="btn btn-large btn-primary" value="Zarejestruj">

}
</div>